package com.bs.teachassistant.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by limh on 2020/5/3.
 * 日志实体类
 */

public class Note implements Parcelable {
    private String calssify;//分类
    private String title;   //标题
    private String remark;  //备注
    private String Content; //内容
    private String time;    //时间

    public Note(String calssify, String title, String remark, String content, String time) {
        this.calssify = calssify;
        this.title = title;
        this.remark = remark;
        Content = content;
        this.time = time;
    }

    protected Note(Parcel in) {
        calssify = in.readString();
        title = in.readString();
        remark = in.readString();
        Content = in.readString();
        time = in.readString();
    }

    public static final Creator<Note> CREATOR = new Creator<Note>() {
        @Override
        public Note createFromParcel(Parcel in) {
            return new Note(in);
        }

        @Override
        public Note[] newArray(int size) {
            return new Note[size];
        }
    };

    public String getCalssify() {
        return calssify;
    }

    public void setCalssify(String calssify) {
        this.calssify = calssify;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getContent() {
        return Content;
    }

    public void setContent(String content) {
        Content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(calssify);
        parcel.writeString(title);
        parcel.writeString(remark);
        parcel.writeString(Content);
        parcel.writeString(time);
    }
}
